Solved [computer Science Python Algorithm Question] Please

Solved [computer Science Python Algorithm Question] Please